package me.jiatao.jetpack

import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope
import kotlinx.coroutines.launch
import timber.log.Timber
import timber.log.Timber.DebugTree


class HomeActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_home)

//        lifecycleScope.launch {
//            delay(1000)
//            startActivity(Intent(this@HomeActivity, MainActivity::class.java))
//        }


        if (BuildConfig.DEBUG) {
            Timber.plant(DebugTree())
        }
    }

    fun onClick(view: View) {
        lifecycleScope.launch {

        }
    }

}